package com.whg.demo.service.impl;

import com.whg.demo.mapper.StudentModelMapper;
import com.whg.demo.model.JsonData;
import com.whg.demo.model.StudentVO;
import com.whg.demo.service.TestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author whg
 * @create 2023/1/2 12:17
 * @description：
 */
@Service
public class TestServiceImpl implements TestService {

    private static final Logger logger = LoggerFactory.getLogger(TestServiceImpl.class);

    @Resource
    private StudentModelMapper studentModelMapper;

    @Override
    public List<StudentVO> getName() {
        logger.error("this is error");
        List<StudentVO> list = studentModelMapper.getStudentName();
        return list;
    }
}
